package shardingsphere.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import shardingsphere.demo.entity.User;

import java.util.List;

/**
 * @author fengsihang
 * @date 2018/7/13
 */
@Mapper
@Repository
public interface UserMapper {

    /**
     * insert
     *
     * @param user
     */
    void insert(User user);

    /**
     * userID
     *
     * @param id
     * @return
     */
    List<User> findById(Integer id);


    List<User> findUserByUserId(Integer id);
}
